//主容器样式
.sub-portal > .main-container > .top-tabs > .tab-body {
  background: #E3E7EC;
}
.sub-portal > .main-container > .top-tabs > .tab-body.el-tabs > .el-tabs__content {
  width: calc(100% - 16px);
  top: 56px;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background: transparent;
  border-radius: 4px;
  box-shadow: none;
  & > .el-tab-pane > .tab-content {
    background: #F8F8F8;
    & > div{
      width: 100%;
      height: 100%;
      .bg-white {
        background: #FFFFFF;
      }
      //主页面的tab样式
      .el-tabs {
        height: 100%;
        width: 100%;
        // margin-top: -10px;
        &__header {
          height: 32px;
        }
        &__header > .el-tabs__nav-wrap {
          .el-tabs__nav-scroll > .el-tabs__nav{
            .el-tabs__item {
              height: 32px;
              line-height: 19px;
              padding: 6px 16px 7px !important;
            }
            .el-tabs__item.is-active {
              font-weight: bold;
            }
            .el-tabs__item:hover {
              color: #4088FE !important;
            }
          }
          &::after {
            height: 1px;
            background-color: #D6D7DC;
          }
        }
        &__content {
          height: calc(100% - 32px);
          width: 100%;
          top: 0;
          position: relative;
          &::before {
            display: none;
          }
          .el-tab-pane {
            height: 100%;
            width: 100%;
            & > div {
              height: 100%;
              width: 100%;
            }
          }
        }
      }
    }
  }
}

//顶层样式
.devModel {
  height: 100%;
  width: 100%;
  //主页面的tab样式
  .el-tabs {
    height: 100%;
    width: 100%;
    // margin-top: -10px;
    &__header {
      height: 32px;
    }
    &__header > .el-tabs__nav-wrap {
      .el-tabs__nav-scroll > .el-tabs__nav{
        .el-tabs__item {
          height: 32px;
          line-height: 19px;
          padding-left: 16px;
          padding-right: 16px;
          padding-top: 6px !important;
          padding-bottom: 7px !important;
        }
        .el-tabs__item.is-active {
          font-weight: bold;
        }
      }
      &::after {
        height: 1px;
        background-color: #D6D7DC;
      }
    }
    &__content {
      height: calc(100% - 32px);
      width: 100%;
      top: 0;
      position: relative;
      &::before {
        display: none;
      }
      .el-tab-pane {
        height: 100%;
        width: 100%;
        & > div {
          height: 100%;
          width: 100%;
        }
      }
    }
  }
}

//按钮
.el-button {
  font-size: 14px;
  line-height: 20px;
  padding: 5px 16px;
  animation: throttle 1s step-end forwards;
  &:active {
    animation: none;
  }
  &.is-plain {
    color: #4088FE;
    border: 1px solid #4088FE;
    &:hover{
      background: #EBF4FF;
      border-color: #4088FE;
      color: #4088FE;
    }
    &:active{
      color: #2678FC;
      background: #D3E6FE;
      border-color: #2678FC;
    }
    &.is-disabled {
      color: #999999;
      background: #EEEEEE;
      border-color: #BBBBBB;
      &:hover, &:active{
        color: #999999;
        background: #EEEEEE;
        border-color: #BBBBBB;
      }
    }
  }
  &--plain-danger {
    color: #FF3D40;
    background: #FFFFFF;
    border: 1px solid #FF3D40;
    &:hover,&:focus{
      color: #FF3D40;
      background: #FFEDEE;
      border: 1px solid #FF3D40;
    }
    &:active{/*未规范 */
      color: #ED3B3D;
      background: #FCD7D8;
      border: 1px solid #ED3B3D;
    }
  }
  &--primary {
    background: #4088FE;
    border-color: #4088FE;
    &:hover {
      background: #72A7FC;
      border-color: #72A7FC;
    }
    &:active {
      background: #2678FC;
      border-color: #2678FC;
    }
    &:focus {
      background: #4088FE;
      border-color: #4088FE;
    }
  }
  &.is-disabled {
    color: #888888;
    background: #EEEEEE;
    border-color: #EEEEEE;
    &:hover, &:active{
      color: #888888;
      background: #EEEEEE;
      border-color: #EEEEEE;
    }
  }
  &.plainBtn {
    padding: 5px 7px;
    font-size: 16px;
  }
}
@keyframes throttle {
  from {
    pointer-events: none;
  }
  to {
    pointer-events: all;
  }
}
.el-button--check{
  position: relative;
  line-height: 20px;
  font-size: 14px;
  font-family: MicrosoftYaHei;
  color: #4088FE;
  padding: 5px 16px;
  background: #EBF3FE;
  border: 1px solid #4088FE;
  opacity: 1;
  border-radius: 4px;
  &:after{
    content: '';
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 16px;
    height: 16px;
    background: url('../img/ico_img_selected.svg') 100%/100% no-repeat;
  }
}
.el-button+.el-button {
  margin-left: 8px;
}
//input框
.el-input {
  &__inner {
    line-height: 32px;
    height: 32px;
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid #C7D0DA;
    color: #262626;
    &:hover {
      border-color: #4088FE;
    }
  }
  &__suffix {
    position: absolute;
    height: 100%;
    right: 6px !important;
    top:0;
    &-inner{
      i {
        width: 16px;
        line-height: 32px;
      }
    }
  }
  &__prefix {
    position: absolute;
    height: 100%;
    left: 6px !important;
    top:0;
      i {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 16px;
      }
      .el-input__icon {
        line-height: 32px;
      }
  }
  &.is-disabled .el-input__inner {
    color: #262626;
    background: #F5F5F5;
    border-color: #C7D0DA;
  }
}
.el-input--suffix .el-input__inner{
  padding-right: 26px;
}
.el-input--prefix .el-input__inner {
  padding-left: 26px;
}

.el-input-number{
  &.is-disabled {
    .el-input-number__decrease,
    .el-input-number__increase {
      border-color: #c7d0da;
      i {
        color: #c7d0da
      }
    }
    .el-input.is-disabled .el-input__inner{
      border-color: #c7d0da;
    }
  }
  .el-input .el-input__inner {
    text-align: left;
  }
}
//文本省略号
.el-input .text-ellipsis.el-input__inner{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space:  nowrap;
}

//textarea样式
.el-textarea {
  &__inner {
    height: 100%;
    &:hover {
      border-color: #4088FE;
    }
  }
}

//radio单选框
.el-radio {
  margin-right: 16px;
  color: #262626;
  & > &__input {
    height: 16px;
    .el-radio__inner {
      width: 16px;
      height: 16px;
    }
    &.is-checked {
      .el-radio__inner {
        background: transparent;
        border: 1px solid #4088FE;
        &::after {
          width: 10px;
          height: 10px;
          background-color: #4088FE;
        }
      }
    }
  }
  &__label {
    padding-left: 4px;
    line-height: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    .symbol {
      font-size: 12px;
      padding: 0 5px 2px 4px;
      margin-left: 4px;
      height: 16px;
      line-height: 16px;
      background: #F45558;
      border-radius: 10px;
      color: #FFFFFF;
      position: relative;
      top: -1px;
    }
  }
}

//checkbox复选框
.el-checkbox {
  margin-right: 16px;
  &__input {
    height: 16px;
    .el-checkbox__inner {
      width: 16px;
      height: 16px;
      &::after {
        width: 4px;
        height: 9px;
        left: 5px;
      }
    }
  }
  &__label {
    padding-left: 4px;
    line-height: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
  }
}

//日期选择器
.el-date-editor {
  &.el-input__inner {
    padding: 5px 2px 5px 10px;
  }
  &--daterange, &--timerange {
    .el-range__icon {
      line-height: 20px;
    }
    .el-range-separator {
      width: auto;
      line-height: 20px;
    }
    .el-range__close-icon {
      line-height: 22px;
    }
  }
  &--date {
    .el-icon-date::before {
      position: relative;
      // top: -4px;
    }
    .el-icon-circle-close {
      position: relative;
      top: 2px;
    }
  }
  &--datetime {
    .el-input__prefix {
      .el-input__icon {
        line-height: 32px;
      }
    }
  }
  &.is-disabled, &.is-disabled:hover {
    border-color: #C7D0DA;
    background: #F5F5F5;
    color: #262626;
  }
}

//下拉框
.el-select:hover .el-input__inner{
  border-color: #4088FE;
}
.el-select.color-primary > .el-input > .el-input__inner {
  color: #4088FE;
}
.el-select.color-danger > .el-input > .el-input__inner {
  color: #FF3D40;
}
.el-select.color-success > .el-input > .el-input__inner {
  color: #00C484;
}

.el-select {
  &__tags {
    .el-tag.el-tag--info {
      background: #EBF4FF;
      border-color: #EBF4FF;
      color: #262626;
      .el-tag__close {
        background: #EBF4FF;
        color: #262626;
      }
    }
  }
  .el-input.is-disabled .el-input__inner:hover {
    border-color: #C7D0DA;
  }
}

.el-select-dropdown {
  &__list {
    padding-bottom: 14px;
  }
  &__item {
    height: 40px;
    line-height: 40px;
    color: #262626;
    &.selected {
      color: #333333;
      background: #D7EFFF;
    }
    &.hover {
      background: #D7EFFF;
    }
    span {
      font-size: 14px;
      line-height: 40px;
    }
    .opt-panel{
      display: flex;
      align-items: center;
      justify-content: space-between;
      span:nth-of-type(1) {
        margin-right: 10px;
      }
      span:nth-of-type(2) {
        font-size: 12px;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space:  nowrap;
      }
    }
  }
  //&__wrap{
  //  max-width: 300px;
  //}
  &.is-multiple {
    .el-select-dropdown {
      &__item {
        height: 40px;
        line-height: 40px;
        &.selected {
          color: #333333;
          background: #D7EFFF;
          &::after {
            font-size: 16px;
            color: #4088FE;
          }
        }
        &.hover {
          background: #D7EFFF;
        }
        span {
          font-size: 14px;
          line-height: 40px;
        }
      }
    }
  }
  &.el-popper[x-placement^=bottom] {
    margin-top: 4px;
  }
  .popper__arrow {
    display: none;
  }
}

//表单样式
.el-form {
  &-item {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    &__label {
      font-size: 14px;
      font-weight: normal;
      padding-right: 10px;
      line-height: 32px;
      color: #262626;
      flex-shrink: 0;
    }
    &__content {
      flex: 1;
      margin-left: 0 !important;
      line-height: 32px;
       height: 32px;
      .el-input {
        display: flex;
        &-group__prepend,
        &-group__append {
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }
      .el-select, .el-date-editor{
        width: 100%;
        display: flex;
      }
      .el-select .el-input.is-disabled .el-input__inner{
        height: 32px;
      }
      .el-select .el-input .el-input__inner{
        height: 32px;
      }
    }
    &__error {
      padding-top: 2px;
    }
  }
}

//级联
.el-cascader {
  width: 180px;
  line-height: 18px;
  .el-input {
    &__inner {
      line-height: 32px;
      height: 32px;
      padding: 4px 11px;
      border-radius: 4px;
      border: 1px solid #C7D0DA;
      padding-right: 30px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space:  nowrap;
    }
    &__suffix {
      &-inner{
        i {
          line-height: 32px;
        }
      }
    }
  }
}
/*switch开关样式*/
.el-switch{
  height: 22px;
  line-height: 22px;
  .el-switch__core{ /*开关按钮的宽度大小,文字较少时*/
    width: 44px !important;
    background-color: #BBBBBB;
    height: 22px;
    &:after{
      top: 1px;
      width: 18px;
      height: 18px;
    }
  }
  &.large{
    .el-switch__core{ /*开关按钮的宽度大小,文字较多*/
      width: 88px !important;
    }
  }
  &.default{
    .el-switch__core{ /*开关按钮的宽度大小,没有文字时*/
      width: 40px !important;
    }
  }
  &.is-checked .el-switch__core {
    border-color: #4088FE;
    background-color: #4088FE;
    &::after{
      margin-left: -19px;
    }
  }
  &__label{
    position: absolute;
    display: none;
    &.is-active {
      display: block;
    }
    &--left.is-active{
      z-index: 1;
      color: #FFFFFF;
      margin-right: -10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    &--right.is-active{
      z-index: 1;
      color: #FFFFFF;
      margin-left:  -10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    &--left, &--right{
      left: 0;
      right: 0;
      text-align: center;
    }
  }
  &__label *{
    font-size: 12px;
    margin: 0 3px;
  }
}
// select 校验图标删除
.el-form-item--feedback .el-input__validateIcon{
  display: none !important;
}

